<div class="card-pack-item coupon-item useless">
  {% if cardDetail.targetType == "course" %}
    {% if cardDetail.targetId == 0 %}
      <p class="title">可用于抵扣全站课程</p>
    {% else %}
      <p class="title">用于抵扣指定课程</p>
    {% endif %}
  {% endif %}

  {% if cardDetail.targetType == "classroom" %}
    <p class="title">可用于抵扣全站班级</p>
  {% endif %}

  {% if cardDetail.targetType == "vip" %}
    {% if cardDetail.targetId == 0 %}
      <p class="title">可用于抵扣全站会员</p>
    {% else %}
      <p class="title">用于抵扣指定会员</p>
    {% endif %}
  {% endif %}
  <p class="price">
    {% if cardDetail.type == "minus" %}￥{% endif %}<strong>{{ cardDetail.rate }}</strong>{% if cardDetail.type == "discount" %}折{% endif %}
  </p>
  <p>有效期截止：<span>{{ cardDetail.deadline|date('Y年n月d日') }}</span></p>
  <div class="stamp stamp-outdate"></div>
</div>
